from dodo.mindmap.data.models import NodeModel
class BaseManager:
    def __init__(self):
        pass
    
    def create(self):
        pass
    
    def delete(self):
        pass
    
    def delete_all(self):
        pass

class NodeManager:
    def __init__(self, nodes=None):
        self.nodes = nodes or {}
    
    def create(self, parent=None, node=None):
        node = node or NodeModel()
        if parent:
            self._find_node_in_hierarchy(parent)[node] = {}
        else:
            self.nodes[node] = {}
            
        return node
    
    def delete(self):
        pass
    
    def delete_all(self):
        pass
    
    def _find_node_in_hierarchy(self, node):
        pass
    
class LinkManager:
    def __init__(self):
        pass
    
    def create(self):
        pass
    
    def delete(self):
        pass
    
    def delete_all(self):
        pass